from django.db import models

# Create your models here.

from django.db import models

# Create your models here.

class UserInfo(models.Model):
    user_type_choice = (
        (1,'普通用户'),
        (2,'vip'),
        (3,'svip')
    )

    user_type = models.IntegerField(choices=user_type_choice)
    username = models.CharField(max_length=32)
    password = models.CharField(max_length=32)

class UserToken(models.Model):
    user = models.OneToOneField(to='UserInfo',on_delete=models.CASCADE)
    Token = models.CharField(max_length=64)
